How to solve python package error DLL load failed: %1 is not a valid Win32 application? 您所在的位置:网站首页 python win32弹窗 How to solve python package error DLL load failed: %1 is not a valid Win32 application?

How to solve python package error DLL load failed: %1 is not a valid Win32 application?

#How to solve python package error DLL load failed: %1 is not a valid Win32 application?| 来源: 网络整理| 查看: 265

Hi friend,

Welcome to MSDN forum.

Sorry about you are experiencing this issue.

At first I was thinking if it may be the issue 32 bit or 64 bit version of python or OpenCV, but it seems not, since you’ve tried both of them according to the thread you shared.

So I wonder if it’s the error message’s misleading, and this did happen to someone else, the real error is the OpenCV DLLs cannot be found. To resolve this issue, you could add the OpenCV binaries to the Windows PATH environment variable (opencv binaries path, eg ” C:\opencv\build\bin\Release” ) by following steps:

Control panel -> System and security -> System -> Advanced system settings->  Environment Variables :

You could click New button to add it.

Then restart VS.

Reference thread:

http://stackoverflow.com/questions/14629818/importerror-dll-load-failed-1-is-not-a-valid-win32-application

Not sure if this could absolutely work for you, but it’s worth trying.

Hope it’s helpful.

Best regards,

Fletch

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有